#include <stdio.h>
#include <stdlib.h>

#define ARRLEN(arr,type) sizeof(arr)/sizeof(type)
int a[10] = {1,9,5,6,4,8,1,3,0,2};

void swap(int *a,int *b) 
{
	*a = *a+*b;
	*b = *a-*b;
	*a = *a-*b;
}

void print_arr(int a[],int ac)
{
	int i;
	for (i=0; i<ac ; i++) {
		printf("%d \t",a[i]);
	}
	printf("\n");
}
